// 导入请求模块
import request from "@/utils/request.js"

// 分页查询 - VO
export const categoryVOService = () => request.get('/product/category_vo')

// 查询列表
export const getCategoryList = () => request.get('/product/category')

// 查询回显
export const queryCategoryById = (id) => request.get('/product/category/' + id)

// 修改
export const updateCategory = (editForm) => request.put('/product/category',  editForm)

// 新增
export const addCategory = (addForm) => request.post('/product/category', addForm)

// 删除
export const deleteCategory = (id) => request.put('/product/category/logic/' + id)